

/**
 * DataTables
 */
var datatable = null,idList=[];

$(function() {
	datatable = $('.table-sort').dataTable({
		order: [
			[1, 'asc']
		],
		bRetrieve: true,
		autoWidth: true,
		searching : false,
		lengthChange: false,
		processing: true, //当datatable获取数据时�?�是否显示正在处理提示信息�??
		serverSide: true, //服务器处理分�?
		responsive: {
			details: false
		},
		//lengthMenu: [100],   // 每页显示数据（默认是10�?
		ordering: false,//是否允许用户排序
		paging: true,//是否分页
		pagingType: "full_numbers",//除首页�?�上�?页�?�下�?页�?�末页四个按钮还有页数按�?
		/* scrollX: true,//允许水平滚动
		 scrollY: "200px",
		 scrollCollapse: true, */
		stateSave: false,//刷新时是否保存状�?
		//deferRender: true,//延迟渲染
		ajax: {
			url: contextPath + "/report/cardUseHistory",
			type: 'post',
			data: function(d) {
				d.cardNumber = $('#cardNumber').val();
			}
		},
		language: {
			"url": "../resources/js/datatables_language.json"
		},
		columns: [
			{data: "cardNumber",defaultContent: ""},
			{data: "createTime",defaultContent: ""},
			{data: "scenicSpot",defaultContent: ""}
		]
	});

});


function selectOnchange(){
	$('.table-sort').dataTable().fnDraw(false);
}
